package org.mx.dal;

import org.mx.dal.entity.BaseDictTree;

@SuppressWarnings("javadoc")
public abstract class BaseDictTreeEntity<T extends BaseDictTree<T>> extends BaseDictEntity implements BaseDictTree<T> {
    /**
	 * 
	 */
	private static final long serialVersionUID = 4156825934604978446L;

	/**
     * {@inheritDoc}
     *
     * @see BaseDictTree#getParentId()
     */
    @Override
    public String getParentId() {
        T parent = getParent();
        return parent == null ? null : parent.getId();
    }
}
